using System;
namespace ProgrammingLanguageNr1
{
	public class Error : Exception
	{
		public enum ErrorType {
			UNDEFINED,
			SYNTAX,
			LOGIC
		}
		
		public Error (string message, ErrorType type, int lineNr, int linePosition)
		{
			m_message = message;
			m_type = type;
			m_lineNr = lineNr;
			m_linePosition = linePosition;
		}
		
		public string getMessage() { return m_message; }
		public int getLineNr() { return m_lineNr; }
		public int getLinePosition() { return m_linePosition; }
		public ErrorType getErrorType() { return m_type; }
		
		string m_message;
		int m_lineNr, m_linePosition;
		ErrorType m_type;
	}
}

